
import {getToken} from './utils/storageUtils'

// 把公共样式表导入进来
import './style/adminlte.min.css';
import './style/app.css';

let url = window.location.href;

let isLogin = url.includes('/login');

let token = getToken();

// 当前本地有没有token
if(token){
    if(isLogin){
        window.location.href = './users.html'
    }
}else{
    if(!isLogin){
        window.location.href = './login.html'
    }
}